<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>员工表</title>
    <link rel="stylesheet" href="/commons/layui/css/layui.css">
</head>
<body>

<div class="layui-container">
    <!--查询框-->
    <blockquote class="layui-elem-quote">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">查询条件</label>
                <div class="layui-input-inline">
                    <input type="search" name="search" autocomplete="off" placeholder="查询员工姓名/岗位" class="layui-input"/>
                </div>
            </div>
            <div class="layui-inline">
                <button type="button" class="layui-btn" lay-submit lay-filter="searchFilter" >查询</button>
                <button type="button" class="layui-btn layui-btn-normal add_btn">添加</button>
            </div>
        </div>
    </blockquote>




    <form class="layui-form" lay-filter="addFormFilter" style="padding: 10px 10px 0 0;display: none;" id="addFormInfo">
        <div class="layui-form-item">
            <label class="layui-form-label">员工姓名</label>
            <div class="layui-input-block">
                <input type="text" name="ename" lay-verify="required" lay-reqText="员工姓名不能为空" placeholder="请输入员工姓名" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">员工岗位</label>
            <div class="layui-input-block">
                <input type="text" name="job" lay-verify="required" lay-reqText="员工岗位不能为空" placeholder="请输入员工岗位" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">工资</label>
            <div class="layui-input-block">
                <input type="text" name="sal" lay-verify="required|number" lay-reqText="工资不能为空" placeholder="请输入工资" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">奖金</label>
            <div class="layui-input-block">
                <input type="text" name="comm" lay-verify="number"  placeholder="请输入奖金" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">员工上级</label>
            <div class="layui-input-block">
                <select name="mgr" id="mgr" lay-verify="required" lay-reqText="员工上级不能为空">
                    <option value="">请选择员工上级</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">部门</label>
            <div class="layui-input-block">
                <select name="deptNo" id="dept" lay-verify="required" lay-reqText="部门不能为空" >
                    <option value="">请选择部门</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="button" class="layui-btn" lay-submit lay-filter="addFormSubmit">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>



    <!--表格-->
    <table id="empTable" lay-filter="test"></table>

</div>
<script type="text/html" id="empTool">
    <button type="button" class="layui-btn layui-btn-xs" lay-event="edit">编辑</button>
    <button type="button" class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</button>
</script>


    <script src="/commons/layui/layui.js" />
    <script src="/js/list.js"/>
</body>
</html>